import { network } from '@/utils';
import { DetailInfoParams } from './data';

import { basic } from '../../../../../config/Apis';

export async function queryPackagePricesDetail(params: DetailInfoParams) {
  return network.get(basic.deliveryTariff, {
    params,
  });
}

export async function operSaveOrUpdate(params: DetailInfoParams) {
  const resquest = params.id
    ? network.put(basic.deliveryTariff, { data: params })
    : network.post(basic.deliveryTariff, { data: params });
  return resquest;
}
